/**
 * Created by oiuyt on 2018/7/18.
 */
import React, { Component } from 'react';
import asyncComponent from '../../utils/asyncComponent'
import {
    Route,
    Redirect
} from 'react-router-dom'


const list = asyncComponent(() => import("./list"))
const add = asyncComponent(() => import("./add"))
const mod = asyncComponent(() => import("./mod"))
const test9 = asyncComponent(() => import("../main/test9"))

class BlankList extends Component {
        render() {
                return (
                    <div>
                            <Route path={`${this.props.match.url}/`} exact render={()=> ( <Redirect to={`${this.props.match.url}/list`}/>)}/>
                            <Route path={`${this.props.match.url}/list`}   component={list}/>
                            <Route path={`${this.props.match.url}/add`}   component={add}/>
                            <Route path={`${this.props.match.url}/mod`}   component={mod}/>
                            <Route path={`${this.props.match.url}/test9`}   component={test9}/>
                    </div>
                );
        }
}
export default BlankList